package com.cn.shiro.service.impl;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.shiro.dao.PermissionMapper;
import com.cn.shiro.dao.RolePermissionMapper;
import com.cn.shiro.dao.UUserMapper;
import com.cn.shiro.dao.UserRoleMapper;
import com.cn.shiro.service.PermissionService;
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {

	@Autowired
	PermissionMapper permissionMapper;
	@Autowired
	UUserMapper userMapper;
	@Autowired
	RolePermissionMapper rolePermissionMapper;
	@Autowired
	UserRoleMapper userRoleMapper;
	@Override
	public Set<String> findPermissionByUserId(long userId) {
		// TODO Auto-generated method stub
		return permissionMapper.findPermissionByUserId(userId);
	}
	@Override
	public Set<String> findAllPermission() {
		// TODO Auto-generated method stub
		return permissionMapper.findAllPermission();
	}

	
}
